package summer_vacation.shuqiqi.java;

/**
 * Created by shuqi on 2015/8/8.
 */
public class Assignment_8 {
    public static void main(String[] args){
        int m = 0;
        for(int i = 1;i < 10;i++){
            int n = 1;
            for(int j = 1;j < i+1;j++){
                n = n * j;
            }
            m = m + n;
        }
        System.out.println(m);
    }
}
